import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElIconModules from '@element-plus/icons'
import { transElIconName } from 'lib@/utils/utils.js'

const app = createApp(App)

for(let iconName in ElIconModules){
  app.component(transElIconName(iconName), ElIconModules[iconName])
}

app.use(ElementPlus, { size: 'small' })
app.use(store)
app.use(router)
app.mount('#app')
